Category: Objects
Syntax:
Destroy object
Deletes an object and frees the memory it was using. If the object belongs to a user-defined class, its <Destroy> method will be called before it is destroyed.
You should always destroy objects created by your script after you're done using them. Don't destroy objects obtained with MapObject unless you know exactly what you're doing. To destroy an object from inside one of its event handlers, use SafeDestroy instead.
Example: @l $ts = $new(TStringList) $ts.LoadFromFile foo.txt // process the file somehow ... // we're done with the file, now destroy the object Destroy $ts
See also: New, SafeDestroy
Next in "Objects": EventHandlers
Previous in "Objects": ClassOf
Next by name: DirExists
Previous by name: Desc
Up to all commands by name or
commands and functions by category